package com.lsz.flight_system.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import lombok.Data;
import lombok.NoArgsConstructor;

//用户信息实体类
@Data
@NoArgsConstructor
@Entity
@Table(name = "user_message")
public class UserMessage {
    @Id
    @Column(name = "user_name",nullable = false)
    private String username;

    @Column(name = "user_password",nullable = false)
    private String password;

    @Column(name = "balance",nullable = true)
    private float balance;

    @Column(name = "user_phone",nullable = false)
    private String phone;

    @Column(name = "permissions")
    private String permissions;
}
